import { invoke } from '@tauri-apps/api/core'
import startGame from './main'

document.addEventListener('DOMContentLoaded', async () => {
  // Call the Rust function from Tauri
  // This is just an example, you can remove it if not needed
  const result = await invoke('greet', { name: 'Tauri' })
  console.log(result) // 'Hello, Tauri!'

  startGame()
})
